import localforage from 'localforage'

export class TestService {
  async test() {
    const test = await this.resolveTimeout(10000, 10000)
    if(test==10000)
    {
      console.info(123)
    }
    const test1 = localforage.getItem('test1')
    return Promise.all([test, test1])
  }
  setData() {
    localforage.setItem('test', 'test')
    localforage.setItem('test1', 'test1')
  }
  resolveTimeout(value: number, delay: number) {
    return new Promise((resolve) => setTimeout(() => resolve(value), delay))
  }
}
